import request from '@/utils/request'

// 查询用工工单列表
export function listFlow(query) {
  return request({
    url: '/order/flow/list',
    method: 'get',
    params: query
  })
}

// 查询用工工单详细
export function getFlow(id) {
  return request({
    url: '/order/flow/' + id,
    method: 'get'
  })
}

// 新增用工工单
export function addFlow(data) {
  return request({
    url: '/order/flow',
    method: 'post',
    data: data
  })
}

// 修改用工工单
export function updateFlow(data) {
  return request({
    url: '/order/flow/edit',
    method: 'post',
    data: data
  })
}

// 删除用工工单
export function delFlow(id) {
  return request({
    url: '/order/flow/remove/' + id,
    method: 'post'
  })
}
